package cn.fan.testfunction.devise.proxy;

/**
 * TODO
 *
 * @author HTHLKJ
 * @version 1.0
 * @date 2022/5/7 13:57
 */
public class WaterDecorator extends AbstrcatDecorator{

    /**
     * 持有的咖啡对象
     */
    private final Coffee coffee;

    public WaterDecorator(Coffee coffee) {
        this.coffee = coffee;
    }

    @Override
    public void printMaterial() {
        System.out.println("加水");
        coffee.printMaterial();
    }
}
